<input type="text" class="form-control" name="{$name}" readonly value="{$datetime|dateFormat}"/>
<link rel="stylesheet" href="/static/css/bootstrap-datetimepicker.min.css" />
<script src="/static/js/bootstrap-datetimepicker.min.js"></script>
<script src="/static/js/bootstrap-datetimepicker.zh-CN.js"></script>
<script>
    $("input[name={$name}]").datetimepicker({
        language:  'zh-CN',
        format: 'yyyy-mm-dd hh:ii',
        autoclose: true,
        todayBtn: true,
        todayHighlight: true,
        weekStart: 1,
        startDate: '-1w',
        endDate: '+1w',
        startView: 2,
        minView: 1,
    });
</script>
